package com.hornsun.repository;

import com.google.common.base.Preconditions;
import com.hornsun.domain.dto.MedicalDTO;
import com.hornsun.repository.mapper.MedicalRecordMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 编译中... on 2018/4/26.
 */
@Repository
public class MedicalRepository {

    @Resource
    private MedicalRecordMapper medicalRecordMapper;

    public List<MedicalDTO> queryMedicalDTOByGuid(String memberGuid){
        Preconditions.checkNotNull(memberGuid);
        return medicalRecordMapper.selectMedicalDTO(memberGuid);
    }

}
